using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace VOL.Entity.DomainModels
{
    /// <summary>
    /// 进货明细与货品联合视图模型
    /// </summary>
    public class PurchaseOrderItemWithProductModel
    {
        #region 进货明细字段

        /// <summary>
        /// 进货明细ID
        /// </summary>
        [Display(Name = "进货明细ID")]
        public long Id { get; set; }

        /// <summary>
        /// 进货单ID
        /// </summary>
        [Display(Name = "进货单ID")]
        public long PurchaseOrderId { get; set; }

        /// <summary>
        /// 所属进货单号
        /// </summary>
        [Display(Name = "所属进货单号")]
        public string OrderCode { get; set; }

        /// <summary>
        /// 进货数量
        /// </summary>
        [Display(Name = "进货数量")]
        public int? Quantity { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [Display(Name = "单价")]
        public decimal? UnitPrice { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        [Display(Name = "总金额")]
        public decimal? TotalAmount { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        [Display(Name = "出库数量")]
        public int? OutboundQuantity { get; set; }

        /// <summary>
        /// 未出库数量
        /// </summary>
        [Display(Name = "未出库数量")]
        public int? UnoutboundQuantity { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remarks { get; set; }

        #endregion

        #region 货品信息字段

        /// <summary>
        /// 货品ID
        /// </summary>
        [Display(Name = "货品ID")]
        public long ProductId { get; set; }

        /// <summary>
        /// 货品编号
        /// </summary>
        [Display(Name = "货品编号")]
        public string ProductCode { get; set; }

        /// <summary>
        /// 货品名称
        /// </summary>
        [Display(Name = "货品名称")]
        public string ProductName { get; set; }

        /// <summary>
        /// 货品类型
        /// </summary>
        [Display(Name = "货品类型")]
        public string ProductType { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [Display(Name = "规格型号")]
        public string SpecificationModel { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Display(Name = "单位")]
        public string Unit { get; set; }

        /// <summary>
        /// 货品条码
        /// </summary>
        [Display(Name = "货品条码")]
        public string Barcode { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        [Display(Name = "库存数量")]
        public int? StockQuantity { get; set; }

        #endregion
    }
}
